package com.qf.api.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.qf.api.blog.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 文章分类表
 * @TableName t_category
 */
@TableName(value ="t_category")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class CategoryEntity extends BaseEntity {

    /**
     * 分类id
     */
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    /**
     * 分类名称
     */
    @TableField(value = "name")
    private String name;

}